home *** CD-ROM | disk | FTP | other *** search
/ Programming Sound Cards / Programming Sound Cards.iso / sound_56 / processo.asm < prev    next >
Assembly Source File  |  1995-01-01  |  505b  |  24 lines

  1. model large,pascal
  2.  
  3. .CODE
  4. .386
  5.  
  6. PUBLIC Check386
  7.  
  8. Check386 PROC near
  9. ;Now we check if a 386 or higher is present ...
  10.          mov             ax,7000h
  11.          push            ax
  12.          popf
  13.          pushf
  14.          pop             ax
  15.          and             ax,07000h
  16.          jz              endofcheck      ; ax = 0 ... check failed
  17.          xor             ax,ax
  18.          inc             ax              ; ax <> 0 ... check ok !
  19. endofcheck:
  20.          ret
  21. Check386 ENDP
  22.  
  23. ENDS
  24. END